package com.nervenets.web.controller.handler.user.user;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserSetPwdParams extends TokenParams {
    @NeedValidation(type = Type.NOTEMPTY, description = "旧密码")
    private String oldPassword;
    @NeedValidation(type = Type.NOTEMPTY, description = "新密码")
    private String password;
    @NeedValidation(type = Type.NOTEMPTY, description = "二次新密码")
    private String passwordTry;
}
